<div id="container">
	<div id="post-<?php echo $news['News']['id'];?>" class="post-<?php echo $news['News']['id'];?> post type-post status-publish format-standard hentry category-mma-boxing entry">
		<h1 class="entry_title"><?php echo $news['News']['name'];?></h1>
		<div class="metasingle">
		<span class="postdate"><?php echo date("F j, Y",strtotime($news['News']['modified']));?> | </span>
		<span class="postcat">Filed under: <a href="<?php echo $this->webroot?>news/category/<?php echo $news['Category']['id'];?>" title="View all posts in <?php echo $news['News']['name'];?>" rel="category tag"><?php echo $news['Category']['name'];?></a> | </span>
		<span class="postauthor">Posted by: <a href="<?php echo $this->webroot?>news/auth/<?php echo $news['User']['id'];?>" title="<?php echo $news['User']['name'];?>" rel="author"><?php echo $news['User']['name'];?></a></span> 
		</div><!-- /metas -->
	<?php echo $news['News']['content'];?>
	<div class="clear"></div>
	</div><!-- /post -->
	<div class="single_ad">
	<img src="<?php echo $this->webroot;?>img/img_index/468x60-2.jpg" alt="" />		
	</div>
	<div id="comments">
		<?php if(isset($news['Comment'])){ ?>
		<h3 id="comments"><?php if(isset($news['Comment'])){ echo count($news['Comment']) ; }else { echo 'No';}?> &nbsp;Responses for <span class="respondEntryTitle">“<?php echo $news['News']['name']?>”</span></h3>
		<ol class="commentlist">
		<?php foreach($news['Comment'] as $comment):?>
		<li id="comment-<?php echo $comment['id'];?>" class="comment <?php if($comment['id'] % 2 == 0){ echo ' even thread-even ';} else{ echo 'odd alt thread-odd';}?> depth-1">
			<div class="comment-body" id="div-comment-<?php echo $comment['id'];?>">
				<div class="comment-author vcard">
				<img height="32" width="32" class="avatar avatar-32 photo" src="http://0.gravatar.com/avatar/66499773d05cd7e5db46ace372d0a77e?s=32&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D32&amp;r=G" alt="">		
				<cite class="fn"><?php 
				if(isset($comment['user_id']) && $comment['user_id'] == '0'){
					if(isset($comment['comment_author'])){
						echo $comment['comment_author'];
					}
					else{
						echo $comment['comment_author_email'];
					}
					
				}else{
					if(isset($comment['User']['username'])){
						echo $comment['User']['username'];
					}
				}
				?></cite> <span class="says">say:</span>		
				</div>
				<br>
				<div class="comment-meta commentmetadata"><a href="http://khieuvudanang.com/dailyvn/blog/2011/10/ca-trang-xoay-viac-caa-tai-khang-phai-ca-gang-hat-hay.html#comment-14">
				<?php echo date("F j, Y",strtotime($comment['modified'])).' at '.date("h:i a",strtotime($comment['modified']))?></a>		</div>

				<p><?php echo $comment['comment_content'];?></p>

				<div class="reply">
				<a onclick="return addComment.moveForm(&quot;div-comment-<?php echo $comment['id'];?>&quot;, &quot;<?php echo $comment['id'];?>&quot;, &quot;respond&quot;, &quot;86&quot;)" href="<?php echo $this->webroot.'news/show/'.$news['News']['id'];?>#respond" class="comment-reply-link">Reply</a>		
				</div>
			</div>
		</li>
		<?php endforeach; ?>
	</ol>
		<?php }?>
		<div id="respond">
		<h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="<?php echo $this->webroot;?>news/show/<?php echo $news['News']['id'];?>#respond" style="display:none;">Cancel reply</a></small></h3>
		<form action="<?php echo $this->webroot;?>comments/add_news" method="post" id="commentform">
				<?php echo $this->Session->flash(); ?>
		<?php if(!isset($loginIn['User']['id'])){?>
		<p class="comment-notes">Your email address will not be published. Required fields are marked <span class="required">*</span></p>							
		<p class="comment-form-author"><label for="author">Name</label> <span class="required">*</span><input id="author" name="data[Comment][comment_author]" type="text" value="" size="30" aria-required='true' /></p>
		<p class="comment-form-email"><label for="email">Email</label> <span class="required">*</span><input class="required email" id="email" name="data[Comment][comment_author_email]" type="text" value="" size="30" aria-required='true' /></p>
		<p class="comment-form-url"><label for="url">Website</label><input id="url"  class="required url" name="data[Comment][comment_author_url]" type="text" value="" size="30" /></p>
		<?php }else{ ?>
		<p><cite>Logged in as:  <a href="<?php $this->webroot;?>users/view/<?php echo $loginIn['User']['id'];?>"><?php echo $loginIn['User']['username'];?></a>. <a href="<?php echo $this->webroot;?>users/logout">Logout »</a></cite></p>
		<?php }?>
		<p class="comment-form-comment"><label for="comment">Comment</label><textarea id="comment" class="required" name="data[Comment][comment_content]" cols="45" rows="8" aria-required="true"></textarea></p>						<p class="form-allowed-tags">You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:  <code>&lt;a href=&quot;&quot; title=&quot;&quot;&gt; &lt;abbr title=&quot;&quot;&gt; &lt;acronym title=&quot;&quot;&gt; &lt;b&gt; &lt;blockquote cite=&quot;&quot;&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=&quot;&quot;&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=&quot;&quot;&gt; &lt;strike&gt; &lt;strong&gt; </code></p>						<p class="form-submit">
		<input name="submit" type="submit" id="submit" value="Post Comment" />
		<input type='hidden' name='data[Comment][new_id]' value='<?php echo $news['News']['id']?>' id='comment_post_ID' />
		</p>

		</form>
			<script>
				$('#commentform').validate();
			</script>
		</div><!-- #respond -->
	</div><!-- #comments -->	
</div><!-- /container -->
<?php echo $this->element('news_sidebar');?>